﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CompanyManageSystem.Model
{
    [Table("Department")]
    public class Department
    {   
        public Guid ID { get; set; }
        public String Name { get; set; }
        public Guid? ParentID { get; set; }
        public String Code { get; set; }
        public Guid? CompanyID { get; set; }
        [NotMapped]
        public string CodeName { get { return "[" + Code + "]" + Name; } }
    }
}
